package com.mianyang.zhangsan.service;

import com.mianyang.zhangsan.exception.SecServiceException;
import com.mianyang.zhangsan.plugin.mail.Mail;

import javax.mail.MessagingException;

/**
 * @author jiangjr
 * @date 2022-10-26
 */
public interface ISecMailService {

    /**
     * 发送邮件
     * @param userId 用户id
     * @param mail 邮件
     * @throws SecServiceException 业务异常
     * @throws MessagingException 邮件异常
     */
    public void sendMail(Long userId, Mail mail) throws SecServiceException, MessagingException;
}
